package com.queen.restaurant.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.queen.restaurant.domain.Order;

@Repository
public class OrderDao extends BaseDao<Order>{
	
	public List<Order> getOrderListByUserId(String userId){
		String hql = "from Order order where order.user.id=?";
		return getHibernateTemplate().find(hql,userId);
	}
	
}
